package br.edu.ufcg.dsc.domain.configuration;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author Diogo, Felipe, Vinicius 
 */
@Entity
@Table(name="configuration")
public class Configuration {
	
	private int id, studentDays, teacherDays;
	private double valueOfFine;

	public Configuration(int userDays, int teacherDays, double valueOfFine) {
		this.studentDays = userDays;
		this.teacherDays = teacherDays;
		this.valueOfFine = valueOfFine;
	}
	
	public Configuration(){
		this (15, 30, 1.0);
	}

	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Column
	public int getStudentDays() {
		return studentDays;
	}

	public void setStudentDays(int studentDays) {
		this.studentDays = studentDays;
	}
	
	@Column
	public int getTeacherDays() {
		return teacherDays;
	}

	public void setTeacherDays(int teacherDays) {
		this.teacherDays = teacherDays;
	}

	@Column
	public double getValueOfFine() {
		return valueOfFine;
	}

	public void setValueOfFine(double valueOfFine) {
		this.valueOfFine = valueOfFine;
	}
}
